package com.create.myworld;

import com.create.myworld.factory.StartFactory;
import com.create.myworld.worldthings.WorldThings;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author zcw
 */
@SpringBootApplication
@EnableScheduling
@EnableAsync
public class WorldController {

    /**
     * 世界诞生
     *
     * @param args
     */
    public static void main(String[] args) {
        WorldThings.applicationContext = SpringApplication.run(WorldController.class, args);
        new StartFactory().start();
        WorldThings.init();
    }
}
